import request from '@/utils/http';
import { da } from 'element-plus/es/locale';

export const roleList = (): Promise<App.RequestTableResult> => {
  return request.get(`/mock/role`);
};

/** 查询黑名单 */
export const getBlackList = (data: object) => {
  return request.post(`/api/crm/api/blackList/page/list`, data);
};
/* 添加黑名单 */
export const addBlackList = (data: object) => {
  return request.post(`/api/crm/api/blackList/add`, data);
};
/* 编辑黑名单 */
export const editBlackList = (data: object) => {
  return request.post(`/api/crm/api/blackList/edit`, data);
};
/* 删除黑名单 */
export const deleteBlackList = (data: object) => {
  return request.post(`/api/crm/api/blackList/delete`, data);
};
